package channel

import (
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/schema"
)

const TableNameUserChannelBank = "user_channel_bank"

// UserChannelBank 用户通道【bank】
type UserChannelBank struct {
	schema.Model
	UserId     int64  `gorm:"type:bigint;not null;comment:用户ID"`
	UserName   string `gorm:"type:varchar(255);not null;comment:用户名"`
	CardNumber string `gorm:"type:varchar(32);not null;comment:卡号"`
	BankId     int64  `gorm:"type:bigint;not null;comment:银行id"`
	IfscCode   string `gorm:"type:varchar(32);not null;comment:IFSC code"`
	Phone      string `gorm:"type:varchar(32);not null;comment:电话"`
	Email      string `gorm:"type:varchar(64);not null;comment:邮箱"`
	Province   string `gorm:"type:varchar(32);not null;comment:省份"`
	City       string `gorm:"type:varchar(32);not null;comment:市"`
	BranchBank string `gorm:"type:varchar(255);not null;comment:银行分部"`
	AgentId    int64  `gorm:"type:bigint;not null;comment:代理id"`
}

func (*UserChannelBank) TableName() string {
	return TableNameUserChannelBank
}
